package com.alibaba.org.service;

import com.alibaba.basic.dto.ShopDto;
import com.alibaba.basic.service.IBaseService;
import com.alibaba.org.domain.Shop;
import com.alibaba.org.domain.ShopAuditLog;

import javax.mail.MessagingException;
import java.util.List;


public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺审核通过
     * @param shopAuditLog
     * @throws MessagingException
     */
    void pass(ShopAuditLog shopAuditLog) throws MessagingException;

    /**
     * 店铺审核驳回
     * @param shopAuditLog
     * @throws MessagingException
     */
    void reject(ShopAuditLog shopAuditLog) throws MessagingException;

    /**
     * 获取每一个店铺状态
     * @return
     */
    List<ShopDto> getShopState();

    /**
     * 店铺邮件激活
     * @param id
     */
    void shopActive(Long id);
}
